package com.etu.upload;

import java.io.IOException;
import java.io.InputStream;

public interface RequestContextImpl {
	String getContentType() ;
	String getCharacterEncoding() ;
	int getContentLength() ;
	InputStream getInputStream() throws IOException ;
	/**
	 * test the form to find out is it support to file upload or not
	 * @return true if it contains a file to upload
	 * */
	boolean isCanUpload();
	/**
	 * get a random string which bounded the form to separate the head and body
	 * @return String boundary
	 * */
	byte[] getBoundary();

}
